------------------------------------
-- This file is where I put all 
-- incomming user messages.
------------------------------------

local function CloseGUI(ply, key)
	if(key == IN_USE) then
		for k, v in pairs(GVGUI) do	
							v:Remove()
							GVGUI[k] = nil	
		end
	end
end 
hook.Add("KeyRelease", "KeyReleasedHook", CloseGUI)

local meta = FindMetaTable("Entity")
function meta:IsDoor()

	local class = self:GetClass()
	
	if(class == "func_door" or
		class == "func_door_rotating" or
		class == "prop_door_rotating") then
		
		return true
		
	end
	
	return false

end 